package net.osweb.crm.modules.sales.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Productpic entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sales_productpic")
public class ProductPic implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4130629866177520840L;
	private Integer id;
	private Integer userid;
	private Integer productid;
	private String ordernumer;
	private String picname;
	private String picpath;
	private Date createtime;
	private Integer type;
	private Integer isavailability;
	private String comment;

	// Constructors

	/** default constructor */
	public ProductPic() {
	}

	/** full constructor */
	public ProductPic(Integer userid, Integer productid, String ordernumer,
			String picname, String picpath, Date createtime, Integer type,
			Integer isavailability, String comment) {
		this.userid = userid;
		this.productid = productid;
		this.ordernumer = ordernumer;
		this.picname = picname;
		this.picpath = picpath;
		this.createtime = createtime;
		this.type = type;
		this.isavailability = isavailability;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "productid")
	public Integer getProductid() {
		return this.productid;
	}

	public void setProductid(Integer productid) {
		this.productid = productid;
	}

	@Column(name = "ordernumer")
	public String getOrdernumer() {
		return this.ordernumer;
	}

	public void setOrdernumer(String ordernumer) {
		this.ordernumer = ordernumer;
	}

	@Column(name = "picname")
	public String getPicname() {
		return this.picname;
	}

	public void setPicname(String picname) {
		this.picname = picname;
	}

	@Column(name = "picpath")
	public String getPicpath() {
		return this.picpath;
	}

	public void setPicpath(String picpath) {
		this.picpath = picpath;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "createtime", length = 10)
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}